{layout name="layout/layout" /}
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label required">活动状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="0" title="下架" {if $row.status == 0}checked{/if}>
                <input type="radio" name="status" value="1" title="上架" {if $row.status == 1}checked{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">盲盒名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input"  placeholder="请输入平台盲盒活动名称" value="{$row.name|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">默认抽奖次数</label>
            <div class="layui-input-block">
                <input type="text" name="default_num" class="layui-input"  placeholder="请输入默认抽奖次数" value="{$row.default_num|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">推荐人数</label>
            <div class="layui-input-block">
                <input type="text" name="recom_num" class="layui-input"  placeholder="请输入推荐人数" value="{$row.recom_num|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">奖励次数</label>
            <div class="layui-input-block">
                <input type="text" name="reward_num" class="layui-input"  placeholder="请输入奖励次数" value="{$row.reward_num|default=''}" lay-verify="required">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">支付账户</label>
            <div class="layui-input-block layuimini-upload">
                <input name="payment_id" class="layui-input layui-col-xs6" placeholder="请选择支付账户" value="{$row.payment_id|default=''}" lay-verify="required">
                <div class="layuimini-upload-btn">
                    <span>
                        <a class="layui-btn layui-btn-normal"
                           id="select_payment_id"
                           data-payment-select="payment_id"
                           data-payment-select-number="one"
                           data-payment-select-url="/admin/admin/paymentAccount/index?type=2"
                           data-payment-select_id="id"
                           data-payment-select_name="name"
                        ><i class="fa fa-list"></i> 选择</a>
                    </span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">活动规则</label>
            <div class="layui-input-block">
                <textarea name="rule_content" rows="10" class="layui-textarea" placeholder="请输入活动规则" lay-verify="required">{$row.rule_content|default=''}</textarea>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
